package cn.psvmc.cxzapi.mapper.store;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.store.TCouponCode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 优惠券券码表 Mapper 接口
 * @Author auto
 * @Date 2025-01-01
 */
public interface TCouponCodeMapper extends MyBaseMapper<TCouponCode> {

    //获取优惠券券码
    List<String> listCouponCodeByCouponId(@Param("couponid") Integer couponid);

    //更新券码使用状态
    void updateUsedByVoucherCode(@Param("voucherCode") String voucherCode, @Param("used") int used);
}
